<template>
	<view class="content">
		<u-navbar title="提款记录" :placeholder="true" :autoBack="true">
			<view class="u-nav-slot" slot="right" @click="orderbyChange">
				筛选
			</view>
		</u-navbar>
		<fjj-condition ref='condition' @touchmove.stop :color="color" :list="menuList" :defaultValue="defaultValue"
			@result="resultConditon" />
	</view>
</template>

<script>
	import fjjCondition from '@/components/fjj-condition/fjj-condition.vue';
	export default {
		components: {
			fjjCondition,
		},
		data() {
			return {
				color: '#4D7BFE',
				hasChoose: false,
				defaultValue: {
					custom2: 1,
					time1: ['2021/02/01', '2021/02/03'],
				},
				menuList: [{
					'title': '选择状态',
					'type': 'custom',
					'key': 'custom2',
					'isMutiple': false, //单选
					'detailList': [{
						title: '待付款',
						value: "1",
					}, {
						title: '成功',
						value: "2",
					},
					 {
						title: '待审核-逾时失效',
						value: "3",
					},
					{
						title: '待确认-金额错误',
						value: "4",
					},
					{
						title: '待确认-实名不符',
						value: "5",
					},
					{
						title: '失败',
						value: "6",
					}],
				}, {
					'title': '日期范围',
					'type': 'range',
					'key': 'time1',
					'minName': 'time1MinName',
					'maxName': 'time1MaxName',
				}]
			}
		},
		onLoad() {
			
		},
		methods: {
			resultConditon(obj) {
				this.$refs.condition.visibleDrawer = false;
				this.hasChoose = obj.hasChoose;
				console.log(obj);
			},
			orderbyChange(obj) {
				this.$refs.condition.visibleDrawer = true;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background-image: url('../../../static/home/page-bg.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}
</style>